/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DBLayer;
import ModelLayer.Supplier;
import java.util.ArrayList;

/**
 *
 * @author Lie
 */
public interface IFDBSupplier {
    public ArrayList<Supplier> getAllSupplier();
    //find by name
    public Supplier searchSupplierName(String name);
    //finde by Id
    public Supplier searchSupplierId(String cusID);
    //Insert customer
    public int insertSupplier(Supplier sup);
    //update information about an Customer
    public int updateSupplier(Supplier sup);
    //delete customer
    public int deleteSupplier(int personID);
    //find by ID and choose wether to get accosiates
    public Supplier findSupplier(int ID, boolean retriveAssociation);
}
